package com.tuling;

import com.tuling.service.A;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
public class TulingSpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(TulingSpringbootApplication.class, args);
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TulingSpringbootApplication.class);
//        UserService userService = (UserService) context.getBean("userService");
//        userService.test();
//        A a = (A) context.getBean("a");
//        a.sayA();
//        System.out.println("a = " + a);
    }

}
